﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs" Inherits="NhanAi.Admin.ChangePassword" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1 {
            height: 16px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server">
    <h2>Thay đổi mật khẩu</h2>
        <p></p>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
        <table class="form-table-med">
            <tr>
                <td>Mật khẩu hiện tại</td>
                <td>
                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" CssClass="inp-form"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPassword" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>Mật khẩu mới</td>
                <td>
                    <asp:TextBox ID="txtNewPassword" runat="server" TextMode="Password" CssClass="inp-form"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtNewPassword" ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtNewPassword" ErrorMessage="Mật khẩu phải gồm tối thiểu 5 kí tự và tối đa 32 kí tự" ValidationExpression=".{5,32}"></asp:RegularExpressionValidator>
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style1">Xác nhận mật khẩu mới</td>
                <td class="auto-style1">
                    <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password" CssClass="inp-form"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtNewPassword" ControlToValidate="txtConfirmPassword" ErrorMessage="Mật khẩu mới và mật khẩu xác nhận không khớp" Display="None"></asp:CompareValidator>
                </td>
                <td class="auto-style1"></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>
                    <asp:Button ID="btnChangePass" runat="server" OnClick="btnChangePass_Click" Text="Áp dụng" CssClass="pan-button" />
                    
                    <input type="reset" value="Xóa trống"  class="pan-button"/>
                </td>
                <td>&nbsp;</td>
            </tr>
        </table>
    </form>
</asp:Content>
